:root{
    --danmu-main-color:dodgerblue;
    --danmu-main-color:#f60;
    --danmu-main-3-color:rgba(255, 102, 0, .3);
}
html,body{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
}

.danmu-player{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-size: 14px;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    position: relative;
    background-color: black;
    font-family: "Microsoft YaHei" !important;
    -moz-user-select:none;
    -webkit-user-select:none;
    -ms-user-select:none;
    border:1px solid #000;
    outline:none;
}

.danmu-player:before,
.danmu-player:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.danmu-player input:focus {
    outline: 0;
}

.danmu-player input[type="range"] {
    background-color: slategrey;
    background-color: var(--danmu-main-3-color);
    top: 17px;
    -webkit-appearance: none;
    height:3px !important;
    cursor: pointer;
}

.danmu-player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    cursor: default;
    top: -5px;
    height: 10px;
    width: 10px;
    /*transform: translateY(-4px);*/
    background-color: dodgerblue;
    background-color: var(--danmu-main-color);
    border-radius: 5px;
    border: none;
    /*-webkit-box-shadow: 0 -1px 1px black inset;*/
}

.danmu-player input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    cursor: default;
    top: -5px;
    height: 10px;
    width: 10px;
    /*transform: translateY(-4px);*/
    background-color: dodgerblue;
    background-color: var(--danmu-main-color);
    border-radius: 5px;
    border: none;
    /*-webkit-box-shadow: 0 -1px 1px black inset;*/
}

.danmu-player .danmu-player-load{
    display: none;
    position: absolute;
    width: 50px;
    height: 50px;
    left: 50%;
    margin-left: -25px;
    background-color: white;
    opacity: 0.8;
    border-radius: 4px;
    z-index: 1002;
    top: 50%;
    margin-top: -50px;
    padding: 5px;
}
.danmu-player .danmu-player-ctrl{
    position: absolute;
    left: 0;
    bottom: 0;
    height:50px;
    width: 100%;
    background: -webkit-linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.2)); /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.2)); /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.2)); /* Firefox 3.6 - 15 */
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.2)); 
    z-index: 198;
    transition:visibility 1s linear;
}

.danmu-player .danmu-video{
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    height:100%;
}

/* 进度条 */
.danmu-player .ctrl-progress-box{
    position:absolute;
    top:-25px;
    width:100%;
    height:30px;
    z-index: 1000;
    cursor: pointer;
}
.danmu-player .ctrl-progress-time{
    position: absolute;
    top: -10px;
    background-color: rgba(255, 255, 255, .9);
    color: #000;
    font-size: 10px;
    padding:3px 5px;
    border-radius: 3px;
    display: none;
}
.danmu-player .ctrl-progress-time:after{
	position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, .9);
    left: 10px;
    bottom: -12px;
}
.danmu-player .ctrl-progress{
    position:absolute;
    top:25px;
    width: 100%;
    height:4px;
    background-color:rgba(255,255,255,.35);
    transition:all .2s ease;
    box-shadow: 1px 0px 2px #ccc;
}
.danmu-player .ctrl-progress-box:hover .ctrl-progress{
    height:12px;
    top:18px;
}
.danmu-player .ctrl-progress .current {
    position:absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: dodgerblue;
    background-color:var(--danmu-main-color);
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    z-index: 1003;
}
.danmu-player  .ctrl-progress .buffered{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color:rgba(255,255,255,.5);
    z-index: 1002;
}
.danmu-player  .ctrl-progress .progress-handle {
    display:inline-block;
    position: absolute;
    top:0;
    right:-2px;
    width: 4px;
    height: 4px;
    line-height: 4px;
    background-color: dodgerblue;
    background-color:var(--danmu-main-color);
    color: dodgerblue;
    border-radius: 50%;
    border-color: dodgerblue;
    border-color:var(--danmu-main-color);
    z-index: 1004;
    overflow: visible;
    visibility:hidden;
    transition:all .2s ease;
}
.danmu-player .ctrl-progress-box:hover .progress-handle{
    visibility:visible;
    top: -1px;
    right:-7px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 5px #fff;
}
.danmu-player .ctrl-progress .progress-handle:after{
    content: '';
    position: absolute;
    left:0;
    top:0;
    width: 4px;
    height: 4px;
    border-radius: 100%;
    display: block;
    background-color:rgba(255,255,255,.3);
    background-color:var(--danmu-main-3-color);
    visibility:hidden;
    transition:all .2s ease;
}
.danmu-player .ctrl-progress-box:hover .progress-handle:after{
    visibility:visible;
    left: -4px;
    top: -4px;
    width: 22px;
    height: 22px;
}

/* 控制条 */
.danmu-player .ctrl-main {
    position:relative;
    top:4px;
    width: 100%;
    height:46px;
    line-height:46px;
    color:rgba(255,255,255,1);
    vertical-align: middle;
    transition:visibility .2s ease;
}
.danmu-player  .ctrl-btn {
    display: inline-block;
    height: 100%;
    float: left;
    width: auto;
    text-shadow:rgb(150, 150, 150) 0px 0px 2px;
}
.danmu-player .play-btn, .danmu-player .next-btn {
    width: 50px;
    height:45px;
    margin-top:.5px;
    color:#fff;
    font-size:18px;
    text-align: center;
    cursor: pointer;
    text-shadow: 1px 1px 8px #ccc;
}
.danmu-player .play-btn:hover, .danmu-player .next-btn:hover {
    background:rgba(255,255,255,.2);
}
.danmu-player .next-btn {
    width: 30px;
    height:45px;
    margin-top:.5px;
    color:#fff;
    font-size:18px;
    text-align: center;
    cursor: pointer;
    text-shadow: 1px 1px 8px #ccc;
}
.danmu-player .time-box{
    margin-left:10px;
    width:100px;
    font-size:12px;
    cursor:default;
}
.danmu-player .current-time{
    color: dodgerblue;
    color:var(--danmu-main-color);
    text-shadow:none;
}
.danmu-player .ctrl-btn-right {
    padding-right:10px;
    padding-left:10px;
    display: inline-block;
    height: 100%;
    float: right;
    text-align: center;
    color:dodgerblue;
    color:var(--danmu-main-color);
    font-size: 14px;
    cursor:pointer;
    margin-right:5px;
    transition:color .15s ease;
}

/* 倍速 */
.danmu-player .rate-btn {
    width:35px;
    position:relative;
}
.danmu-player .rate-btn > ul[id$="playrate"]{
    display:none;
    position:absolute;
    width:50px;
    height:250px;
    padding:10px 2px;
    color:#888;
    background-color:#efefef;
    border-radius:3px;
    bottom:40px;
    left:0px;
    cursor:default;
    z-index:1010;
    outline:none;
    text-shadow:none;
    box-shadow: 0 0 5px #555;
}
.danmu-player .rate-btn > ul[id$="playrate"]:before{
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color:#efefef;
    left:21px;
    bottom:-12px;
}
.danmu-player .rate-btn > ul[id$="playrate"] li{
    list-style:none;
    line-height:25px;
    cursor:pointer;
}
.danmu-player .rate-btn > ul[id$="playrate"] li:hover, .danmu-player .rate-btn > ul[id$="playrate"] li.active{
    color:#fff;
    background-color:var(--danmu-main-color);
    border-radius:3px;
}

/* 音量 */
.danmu-player .voice-btn {
    font-size:18px;
    cursor: pointer;
    position:relative;
}
.danmu-player .voice-btn > div[id$="volume"]{
    display:none;
    position:absolute;
    width:10px;
    height:100px;
    padding:10px;
    color:#888;
    background-color:#efefef;
    border-radius:3px;
    bottom:40px;
    left:0px;
    cursor:default;
    z-index:1010;
    outline:none;
    text-shadow:none;
    box-shadow: 0 0 5px #555;
}
.danmu-player .voice-btn > div[id$="volume"]:before{
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color:#efefef;
    left:9px;
    bottom:-12px;
}
.danmu-player .voice-btn input[type="range"]{
    transform:rotate(-90deg);
    padding:0 1px;
    position: relative;
    margin:0;
    width: 100px;
    height:2px;
    top: 50px;
    left: 45px;
}
/* 全屏 */
.danmu-player-full-screen .ctrl-btn-right{
    margin-right:20px;
}
.danmu-player-full-screen{
    position:fixed  ! important ;
    z-index:997  ! important ;
    top:0 ! important;
    left:0 ! important ;
    margin:0 !important;
    height:100vh  ! important ;
    width:100vw  ! important ;
}
